package com.tl.boot.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * com.tl.boot.common.vo -- PageInfoVO
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/10 12:42
 */
@ApiModel("通用分页响应对象")
public class PageInfoVO<T> {
    @ApiModelProperty(value = "记录总数", dataType = "Long")
    private Long total;
    @ApiModelProperty(value = "当前页记录列表", dataType = "List")
    private List<T> list;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public PageInfoVO(Long total, List<T> list) {
        this.total = total;
        this.list = list;
    }
}
